package code.util;

import java.util.ResourceBundle;

public class ProperyUtils {

	private static ResourceBundle config;
	
	private static ResourceBundle getConfig(){
		if(config == null){
			config = ResourceBundle.getBundle("config/config");
		}
		return config;
	}
	
	public static String getProperty(String key){
		return getConfig().getString(key);
	}
	
	public static String getDBType(){
		return getProperty("jdbc.dbType");
	}
}
